<?php

/**
 * @author Argel Cabalag
 * @copyright 2009
 */
?>

<br />
<div class = "formlayout">
	<h3>Main Clients (MC)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<a href="<?php echo url_for('mc/new') ?>">ADD</a></h3>
	<table class = "display" id="mc_table">
	  <thead>
	    <tr>
	      <th>MCID NO.</th>
	      <th>MC Name</th>
	      <th>Client Type</th>
				<th>Author</th>
	      <th>Client Since</th>
	    </tr>
	  </thead>
	    <tbody>
	    <?php foreach ($client_list as $client): ?>
	    <tr>
	      <td><a href="<?php echo url_for('mc/show?id='.$client['id']) ?>"><?php echo $client->getmc_no() ?></a></td>
	      <td><center><?php echo $client->getname() ?></center></td>
	      <td><center><?php echo $client->getclient_type() ?></center></td>
				<td><center><?php echo $client->getsfGuardUser()->getusername() ?></center></td>
	      <td><center><?php echo $client->getcreated_at() ?></center></td>
	    </tr>
	    <?php endforeach; ?>
	  </tbody>
	</table>
	<br />
	  <a href="<?php echo url_for('mc/new') ?>">ADD</a>
	<br />

 
</div>


<script type="text/javascript">
jQuery(document).ready(jQuery(function() {
	jQuery('#mc_table').dataTable();
} ));


</script>